package pers.muci.oauthclient.config;

import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

/**
 * ClassName: MyCommandRunner
 * Description:
 * date: 2021/10/11 16:53
 *
 * @author muci
 * @since JDK 1.8
 */
@Component
public class MyCommandRunner implements CommandLineRunner {
    @Override
    public void run(String... args) throws Exception {
        try {
            Runtime.getRuntime().exec("cmd /c start http://localhost:9092/index.html");
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
